<template>
  <a-layout class="layout">
    <a-layout-header class="header">
      <div class="logo">博物馆预约抢票系统</div>
      <a-menu v-model:selectedKeys="selectedKeys" theme="dark" mode="horizontal" :style="{ lineHeight: '64px' }">
        <a-menu-item key="1">
          <router-link to="/">首页</router-link>
        </a-menu-item>
        <a-menu-item key="2">
          <router-link to="/ticket">票务管理</router-link>
        </a-menu-item>
        <a-menu-item key="3">
          <router-link to="/config">抢票配置</router-link>
        </a-menu-item>
        <a-menu-item key="4">
          <router-link to="/batch">批量操作</router-link>
        </a-menu-item>

        <a-menu-item key="6">
          <router-link to="/yzdyh">扬州大运河博物馆</router-link>
        </a-menu-item>

        <a-menu-item key="7">
          <router-link to="/njbwg">国家博物馆</router-link>
        </a-menu-item>

        <a-menu-item key="8">
          <router-link to="/statistics">数据统计</router-link>
        </a-menu-item>
      </a-menu>
    </a-layout-header>
    <a-layout-content class="content">
      <router-view></router-view>
    </a-layout-content>
    <a-layout-footer class="footer">
      博物馆预约抢票系统 ©2024 Created by Your Company
    </a-layout-footer>
  </a-layout>
</template>

<script setup>
import { ref } from 'vue'

const selectedKeys = ref(['1'])
</script>

<style scoped>
.layout {
  min-height: 100vh;
}

.header {
  display: flex;
  align-items: center;
}

.logo {
  color: white;
  font-size: 20px;
  margin-right: 30px;
}

.content {
  padding: 24px 50px;
  background: #fff;
  margin: 24px;
  min-height: 280px;
}

.footer {
  text-align: center;
}
</style>